#coding=utf-8
from common import HTMLTestRunner_for_py3
import unittest


import sys, os
class Mydemo(unittest.TestCase):
    def test1(self):
        print("excute test1")
        self.assertEqual(1,1)

    def test4(self):
        print("excute test4")
if __name__ == '__main__':
    module_name=os.path.basename(sys.argv[0]).split(".")[0]
    module=__import__(module_name)
    fp=open("/Users/qts/Downloads/interfaceTest/result/20190225144150/report.html", "wb")
    runner=HTMLTestRunner_for_py3.HTMLTestRunner(stream=fp, title='Test Report', description='Test Description')
    all_suite=unittest.defaultTestLoader.loadTestsFromModule(module)
    runner.run(all_suite)